package com.acegear.horizon.domain.events;

/**
 * Created by guoweike on 17/3/4.
 */
public class UserDeleteEvent extends BaseEvent {

  private Long userId;
  private DeleteType type;

  public UserDeleteEvent(Long userId, DeleteType type) {
    this.userId = userId;
    this.type = type;
    genEventId();
  }

  public UserDeleteEvent() {
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public DeleteType getType() {
    return type;
  }

  public void setType(DeleteType type) {
    this.type = type;
  }

  @Override
  public String routingKey() {
    return "horizon.domain.user.delete";
  }

  public enum DeleteType {
    CLIENT, MANAGEMENT
  }
}
